package com.woniu.service.imp;

import com.woniu.mapper.RoleMapper;
import com.woniu.pojo.Role;
import com.woniu.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class RoleServiceImp implements RoleService {
    @Autowired
    private RoleMapper roleMapper;

    @Override
    public Role findRoleByRid(Integer rid) {
        return roleMapper.selectRoleByRid(rid);
    }
}
